package com.aaa.sbm.controller;

import com.aaa.sbm.util.Result;
import com.aaa.sbm.util.ResultUtil;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @FileName: OrderController
 * @Description:
 * @Author: zhz
 * @CreateTime: 2025/9/5 9:12
 * @Version: 1.0.0
 */
public class OrderController {

    /**
     * 根据编号查询对象
     * @param orderId
     * @return
     */
    @GetMapping("queryById")
    //@ResponseBody
    public Result queryById(Integer orderId) {
        System.out.println("业务1-和前端交互");
        System.out.println("业务2-和前端交互");
        System.out.println("业务3-和前端交互");
        System.out.println("业务4-和服务层交互");
        System.out.println("业务5-和服务层交互");
        System.out.println("业务5555-和服务层交互");
        System.out.println("业务6666-和服务层交互");
        System.out.println("业务7777-和服务层交互");
        System.out.println("业务55-和服务层交互");
        System.out.println("业务66-和服务层交互");
        System.out.println("业务77-和服务层交互");
        return ResultUtil.success("模拟根据订单编号查询订单对象");
    }
}
